from appium.webdriver.common.mobileby import MobileBy
from appium.webdriver.webdriver import WebDriver
import logging
from wechat_add.base.base import BasePage
from wechat_add.page.addresslist_page import AddressListPage


class MainPage(BasePage):
    addresslist_element = (MobileBy.XPATH, '//*[@text="通讯录"]')
    logging.info("点击通讯录")
    def goto_addlist(self):

        self.find_click(*self.addresslist_element)

        return AddressListPage(self.driver)
        #click通讯录

